#ifndef __DBHELPER_H__
#define __DBHELPER_H__

#include "../Global/Common.h"

#include <QStringList>
#include <QList>

#include <QSqlDatabase>
#include <QSqlQuery>

class DBHelper{

public:
	DBHelper();
	~DBHelper();

private:
	void init();


private:
	QSqlDatabase m_db;

public:
	void initDB();
	bool isOpen();

	QSqlQuery Query(const QString &s);
	bool Execute(const QString &s);

public:
	bool saveDoctor(Doctor& doctor);
};




#endif // __DBHELPER_H__
